package com.production.CoursePlatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;


@Data
@TableName("login")
public class User {
    @Getter
    @TableId(type = IdType.INPUT)
    private String IDnumber;
    @Getter
    private String password;
    @TableField("is_teacher")
    private int isTeacher;

    public void setIDnumber(String IDnumber) {
        this.IDnumber = IDnumber;
    }

    public void setPassword(String password) {
        this.password = password;
    }



    public String getIDnumber() {
        return IDnumber;
    }

    public String getPassword() {
        return password;
    }

    public void setIsTeacher(int isTeacher) {
        this.isTeacher = isTeacher;
    }

    public int getIsTeacher() {
        return isTeacher;
    }

    @Override
    public String toString() {
        return "Login{" +
                "IDnumber='" + IDnumber + '\'' +
                ", password='" + password + '\'' +
                ", isTeacher=" + isTeacher +
                '}';
    }
}
